package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author luolinila
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    public User selectByAccount(@Param("account") String account);
    public User selectByUid(@Param("uid") int uid);
    public void updateUserBalance(@Param("uid") int uid, @Param("balance") double balance);
    public User selectByEmail(@Param("email") String email);
    public User enroll(User user);
}
